package cn.wp.org.service;

import cn.wp.basic.exception.CustomException;
import cn.wp.basic.service.IBaseService;
import cn.wp.org.domain.Shop;

import javax.mail.MessagingException;
import java.util.List;

public interface IShopService extends IBaseService<Shop>{

    /**
     * 批量删除
     * @param ids
     */
    void patchDel(List<Long> ids);

    /**
     * 入驻店铺
     * @param shop
     * @throws CustomException
     */
    void settlement(Shop shop) throws CustomException;

    /**
     * 通过审核
     * @param shop
     * @throws MessagingException
     */
    void passShop(Shop shop) throws MessagingException;

    /**
     * 激活
     * @param id
     */
    void activation(Long id);

    /**
     * 驳回
     * @param shop
     */
    void reject(Shop shop);
}
